package org.android.application.marksixmanage.model;

import java.util.Map;

import cn.bmob.BmobObject;

public class LotteryResult extends BaseModelData {

	public static String FN_PLATFORMID = "platformId";
	public static String FN_ISSUENUMBER = "issueNumber";
	public static String FN_RESULTDATA = "resultData";

	private int platformId;
	private String issueNumber;
	private String resultData;

	public int getPlatformId() {
		return platformId;
	}

	public void setPlatformId(int platformId) {
		this.platformId = platformId;
	}

	public String getIssueNumber() {
		return issueNumber;
	}

	public void setIssueNumber(String issueNumber) {
		this.issueNumber = issueNumber;
	}

	public String getResultData() {
		return resultData;
	}

	public void setResultData(String resultData) {
		this.resultData = resultData;
	}

	public Map<String, Object> toMap() {
		Map<String, Object> paramMap = super.toMap();
		paramMap.put(FN_ISSUENUMBER, getIssueNumber());
		paramMap.put(FN_PLATFORMID, getPlatformId());
		paramMap.put(FN_RESULTDATA, getResultData());
		return paramMap;
	}
	

	@Override
	public void toData(BmobObject object) {
		super.toData(object);
		setPlatformId(object.getInt(FN_PLATFORMID));
		setIssueNumber(object.getString(FN_ISSUENUMBER));
		setResultData(object.getString(FN_RESULTDATA));
	}
	
	
}
